package com.dwk;
import java.util.Scanner;

public class R_B_Tree_Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        R_B_Tree<Integer, Object> rbt = new R_B_Tree();
        //测试输入：ijkgefhdabc
        while(true) {
            System.out.println("请输入key:");
            String key = sc.next();

            rbt.insert(Integer.parseInt(key), null);
            TreeOperation.show(rbt.getRoot());
        }
    }
}
